//package org.ricks.net.consumer;
//
//
//import org.ricks.ioc.anno.Bean;
//import org.ricks.ioc.anno.Configuration;
//import org.ricks.net.rpc.ConsumerConfig;
//import org.ricks.net.rpc.ConsumerModule;
//import org.ricks.net.rpc.ProtocolModule;
//
//import java.util.List;
//
//@Configuration
//public class AppConfig {
//
//    @Bean
//    public ConsumerConfig initConsumerConfig() {
//        ProtocolModule gameProtocolModule = new ProtocolModule((byte) 1, "游戏逻辑模块");
//        ConsumerModule consumerModule = new ConsumerModule(gameProtocolModule,new UserOnlineCountLoadBalancer());
//        return ConsumerConfig.valueOf(List.of(consumerModule));
//    }
//}
